<?php
class OrderItem extends EnhancedModel {
    static $attr_protected = array("id","created_at");

    static $belongs_to = array(
        array('book','select' => 'id, isbn,price,title,on_stock'),
        array('order')
    );

}
?>
